home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.tcd.ie!mdennehy
- From: mdennehy@tcd.ie (Sparks)
- Subject: Calling <windows.h>CreateThread(...) from within a CWinApp object.
- Message-ID: <Dnt4xw.ML0@news.tcd.ie>
- Summary: How to call a function from within an object when it has the same name
- Keywords: MFC,VC++
- Sender: usenet@news.tcd.ie (TCD News System )
- Organization: University of Dublin, Trinity College
- Date: Tue, 5 Mar 1996 18:34:37 GMT
-
- For a Simple/SML compiler/simulator I am writing for a project, I decided
- to have the simulator run as a seperate thread so that an infinite loop in
- the generated code would not lock the machine inconviently. However, when
- calling CreateThread() from within the CWinApp object, it does not appear to
- be able to see the <windows.h> version of the function, ie. the compiler
- does not appear to be able to use the declerations of the functions to
- seperate the two in a call, as I had thought it could. I am using
- VC++ v2.0 with v3.0 of the MFC library, running on Windows NT.
-
- Has anyone got any suggestions, either as to the source of the problem,
- or a possible cure ?
- Thank you...
-
- --
- Mark "Sparks" Dennehy Ham Radio : EI5EDB (2m FM only) :-(
- Engineering Undergrad Internet : mdennehy@tcd.ie
- Trinity College Dublin
-